package ar.edu.uba.fi.jmit.graphvisualizer.server.service;

import java.util.List;

import ar.edu.uba.fi.jmit.graphvisualizer.client.MethodTimeEventService;
import ar.edu.uba.fi.jmit.graphvisualizer.shared.TimeValue;

public class MethodTimeEventServiceImpl extends AbstractServiceImpl implements MethodTimeEventService {

	private static final long serialVersionUID = 8411187827418373067L;

	@Override
	public List<TimeValue> getMonitorData(String application, String monitorName) {
		logger.debug("getting monitor data");
		return generateTimeValueListForProperty(application, monitorName, "jmit.graphvisualizer.methodTime.elapsedTime");
	}

	@Override
	public List<TimeValue> getAverageData(String applicationName, String monitorName) {
		logger.debug("getting average data");
		return generateTimeValueListForProperty(applicationName, monitorName, "jmit.graphvisualizer.methodTime.average");
	}

}
